// #ifndef VUE3
import Vue from 'vue'
import App from './App'


// 设置全局数据

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
import { reactive } from 'vue'
export function createApp() {
	const app = createSSRApp(App)



	// 使用 reactive 或 ref 创建响应式全局数据
	const globalData = reactive({
		userInfo: {
			userId: 0,
			userName: "",
			passWord: "",
			publicId: "DX89099990",
			nickName: "唱跳rap篮球",
			gender: "男",
			following: 108,
			followers: 10,
			phone: "18366567787",
			birthDate: "2004-05-03",
			personalBio: "一枚SRE攻城狮",
			userAvatar: "https://gd-hbimg.huaban.com/f745f4d45175d04e4c85f8c9f34409b1dd5eeb5612e43-VRcM5M_fw1200"
		},
		baseURL:'localhost:8080'
	})

	app.provide('globalData', globalData)
	return {
		app
	}
}
// #endif